﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WD.Framework.Contract
{
    public class ModelBase
    {
        public ModelBase()
        {
            //设置属性默认值
            CreateTime = DateTime.Now;
            IsDeleted = false;
        }

        /// <summary>
        /// 主键自增长
        /// </summary>
        public virtual int ID { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime CreateTime { get; set; }
        /// <summary>
        /// 是否已删除
        /// </summary>
        public virtual bool IsDeleted { get; set; }
    }
}
